<?php

//.................登陆控制器................

class RegisterController extends Controller{
	
	public function index (){
		
		
	if(IS_POST){
			$model = K('Login');
			//执行验证
			if(!$data = $model->register()) $this->error($model->error);
			$this->success('注册成功',U('Index/index'));
		}
		$this->display();
	}

	
	
	
}
